{extend name="common/base"}
{block name="title"}地址管理页{/block}

<body>

{block name="content"}
	<!-- 地址管理 -->
	
	<div class="segments-page">
		<div class="container">
			<div class="product-details">
				<div class="pages-title">
					<h4>我的收货地址</h4>
				</div>
				<a href="{:Url('user/add')}" style="float:right"><button class="button" type="submit"><i class="fa fa-send"></i>添加新地址</button></a><br>
                {volist name="list" id="vo"}
				<div class="contents">
					<form action="" method="POST"></form>
					<div class="contents" style="margin-top:30px;width:85%;float: left;">
						<div class="desc-short">
							<p><span>{$vo.shouhuo_name}</span><span style="margin-left:15px">{$vo.shouhuo_tell}</span></p>
							<p style="width:85%">
								{if($vo.id==$vo.address_id)}
								<span style="color:red;border:1px red solid;margin-right:5px;">默认</span>
								{/if}{$vo.shouhuo_address}
							</p>
							
						</div>
					</div>
					</form>
					<a href="{:Url('user/edit')}?id={$vo.id}" style="float:right;margin-top:58px;"><button class="button" type="submit">编辑</button></a>
					
                </div>
                {/volist}

			</div>
		</div>
	</div>
	
	<!-- 地址管理结束 -->
{/block}